package com.loubobooo.personal.blog.service;


import com.loubobooo.personal.blog.entity.Category;
import com.loubobooo.personal.blog.entity.vo.ArticleListVo;
import com.loubobooo.personal.blog.entity.vo.CategoryVO;

import java.util.List;

public interface CategoryService {
	//获得分类总数
	public Integer countCategory(Integer status);
	
	//获得分类列表
	public List<CategoryVO> listCategory(Integer status);

	//获得带有该分类的文章列表
	public  List<ArticleListVo> listArticleWithCategoryByPage(Integer status, Integer pageNo, Integer pageSize,
            Integer cateId);

	//获得某个分类信息
	public CategoryVO getCategory(Integer status, Integer id);

	//删除分类
	public void deleteCategory(Integer id);

	//根据id查询分类信息
	public CategoryVO getCategoryById(Integer status, Integer id);

	//添加分类
	public void insertCategory(Category category);

	//更新分类
	public void updateCategory(Category category);

	//根据分类名获取分类
	public Category getCategoryByName(String name);


}
